﻿<Window x:Class="Mengsk.ProxyDelivery.App.UI.Goods.GoodsEditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="商品编辑" Height="300" Width="400" ResizeMode="CanMinimize" SizeToContent="WidthAndHeight" Loaded="Window_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        
        <Button Grid.Column="0" Name="btnChooseImage" Click="btnChooseImage_Click" Margin="3"  VerticalAlignment="Top">
            <Image Width="80" Height="80" Name="img"/>
        </Button>
        
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>    
            
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="200"/>
            </Grid.ColumnDefinitions>
            
            <TextBlock Grid.Row="0" Grid.Column="0" Text="厂家名称:" Margin="3" VerticalAlignment="Center"/>
            <ComboBox Grid.Row="0" Grid.Column="1" Margin="3" VerticalAlignment="Center" Name="cbbVendors" DisplayMemberPath="Name" IsEditable="True"   >
            </ComboBox>
            
            <TextBlock Grid.Row="1" Grid.Column="0" Text="鞋子类型:" Margin="3" VerticalAlignment="Center"/>
            <ComboBox Grid.Row="1" Grid.Column="1" Name="cbbTypes" Margin="3" VerticalAlignment="Center">
                <ComboBoxItem>凉鞋</ComboBoxItem>
                <ComboBoxItem>低帮鞋</ComboBoxItem>
                <ComboBoxItem>拖鞋</ComboBoxItem>
                <ComboBoxItem>高帮鞋</ComboBoxItem>
                <ComboBoxItem>靴子</ComboBoxItem>
                <ComboBoxItem>男鞋</ComboBoxItem>
                <ComboBoxItem>凡布鞋</ComboBoxItem>
                <ComboBoxItem>雨鞋</ComboBoxItem>
                <ComboBox.SelectedIndex>0</ComboBox.SelectedIndex>
            </ComboBox>
            
            <TextBlock Grid.Row="2" Grid.Column="0" Text="厂家货号:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Grid.Row="2" Grid.Column="1" Name="tbNumber" Margin="3" VerticalAlignment="Center"/>
            
            <TextBlock Grid.Row="3" Grid.Column="0" Text="商品价格:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Grid.Row="3" Grid.Column="1" Name="tbPrice" Margin="3" VerticalAlignment="Center"/>
            
            <TextBlock Grid.Row="4" Grid.Column="0" Text="商品网址:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Grid.Row="4" Grid.Column="1" Name="tbUrl" Margin="3" VerticalAlignment="Center"/>
            
            <TextBlock Grid.Row="5" Grid.Column="0" Text="产品重量;" Margin="3" VerticalAlignment="Center"/>
            <TextBox Grid.Row="5" Grid.Column="1" Name="tbWeight" Margin="3" VerticalAlignment="Center"/>
            
            <StackPanel Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2"  Orientation="Horizontal">
                <CheckBox Name="chkEnabled" Content="上架" Margin="3" VerticalAlignment="Center" />
                <CheckBox Name="chkUpdateEnabled" Content="允许网络更新" Margin="3" VerticalAlignment="Center"/>
            </StackPanel>
            
            <Button Grid.Row="7" Grid.Column="1" Name="btnSave" Content="保存" Margin="3" VerticalAlignment="Center" Width="60" Click="btnSave_Click"/>
        </Grid>
        
    </Grid>
</Window>
